/*!
 * Copyright (C) 2020 - All Rights Reserved by
 * @author : ZhaoYanbo
 * @email  : zyb920@hotmail.com
 * @created: 2020-10-31
 * @version: 1.0.0.0
 *
 */

#ifndef ARCITEM_H
#define ARCITEM_H

#include <QObject>
#include <QGraphicsRectItem>

class ArcItem : public QObject, public QGraphicsRectItem
{
    Q_OBJECT
public:
    explicit ArcItem(QObject *parent = nullptr, QGraphicsItem * item = nullptr);

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
               QWidget *widget) override;

    void setColor(int r, int g, int b, int a);
    void setSize(double w, double h);

    void setInfo(double d, double angle);

private:
    QColor mColor;
    QColor mFocusColor;

    double mD;
    double mAngle;
    double mY;
    double mH1;
    double mW1;
};

#endif // ARCITEM_H
